package com.bdqn.qnnews.wemedia.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author xlz
 * @since 2023-12-26
 * @description 自媒体图文内容信息表
 */
@Data
// 链式语法
@Accessors(chain = true)
@TableName("wm_news")
@Schema(name = "WmNews 对象", description = "自媒体图文内容信息表 实体类")
public class WmNews {

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "自媒体用户ID")
    private Long userId;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "图文内容")
    private String content;

    @Schema(description = "文章布局	0 无图文章	1 单图文章	3 多图文章")
    private Byte type;

    @Schema(description = "图文频道ID")
    private Long channelId;

    private String labels;

    @Schema(description = "创建时间")
    private LocalDateTime createdTime;

    @Schema(description = "提交时间")
    private LocalDateTime submitedTime;

    @Schema(description = "当前状态	0 草稿	1 提交（待审核）	" +
            "2 审核失败	3 人工审核	4 人工审核通过	" +
            "8 审核通过（待发布）9 已发布")
    private Byte status;

    @Schema(description = "定时发布时间，不定时则为空")
    private LocalDateTime publishTime;

    @Schema(description = "拒绝理由")
    private String reason;

    @Schema(description = "发布库文章ID")
    private Long articleId;

    @Schema(description = "图片用逗号分隔")
    private String images;

    private Boolean enable;


}
